<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@include file="/include/public.jspf"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" type="text/css"
	href="${path }/css/default/m-base.css" />
<link rel="stylesheet" type="text/css"
	href="${path }/css/default/m-common.css" />
<link rel="stylesheet" type="text/css"
	href="${path }/css/default/p-all.css" />

<script type="text/javascript" src="${path }/js/lib/zepto.js"></script>
<script type="text/javascript" src="${path }/js/lib/lib.js"></script>
<script type="text/javascript" src="${path }/js/jquery1.10.2.min.js"></script>
<title>魔环金融-投资列表</title>
</head>

<body style="background: #f5f5f9;">
	<div class="p_index_new">
		<div class="ui_title">魔环金融</div>
		<div class="deal_list">
			<c:forEach items="${productList }" var="borrowInfo">
				<div class="item red_bg">
					<a href="${path}/borrowInfo/detail.htm?borrowId=${borrowInfo.id}"
						class="link_detail"></a>
					<div class="deal_title">
						<span class="deal_fx">${borrowInfo.repaymentType.text}</span>
						<h2>${borrowInfo.borrowName}</h2>
					</div>
					<div class="clearfix deal_con">
						<div class="fl">
							<span>${borrowInfo.borrowDuration}</span><em><c:if
									test="${borrowInfo.durType eq 'DAY'}">天</c:if> <c:if
									test="${borrowInfo.durType eq 'MONTH'}">个月</c:if></em>
						</div>
						<div class="fr">
							<c:choose>
								<c:when test="${borrowInfo.status eq 'RAISE'}">
									<a href="${path }/borrowInfo/invest.htm?borrowId=${borrowInfo.id}"
										class="btn red_btn">投资</a>
								</c:when>
								<c:when
									test="${borrowInfo.status eq 'REPAYMENTED'}">
									<span class="btn grag_btn">已还清</span>
								</c:when>
								<c:when
									test="${borrowInfo.status eq 'REPAYMENTING'}">
									<span class="btn grag_btn">还款中</span>
								</c:when>
								<c:when
									test="${borrowInfo.status eq 'LOANING'}">
									<span class="btn grag_btn">放款中</span>
								</c:when>
								<c:when
									test="${borrowInfo.status eq 'END' and (borrowInfo.borrowMoney-borrowInfo.raiseMoney)<=0}">
									<span class="btn grag_btn">满标</span>
								</c:when>
								<c:otherwise>
									<span class="btn grag_btn">筹款结束</span>
								</c:otherwise>
							</c:choose>
						</div>
						<div class="deal_nh">
							<span>${borrowInfo.borrowRate}</span><em>%</em>
						</div>
					</div>
					<div class="progrss"
						style="width:<fmt:formatNumber value="${(borrowInfo.raiseMoney / borrowInfo.borrowMoney) * 100}" type="currency" pattern="0.00"/>%">
						<span class="pro_num"><fmt:formatNumber
								value="${(borrowInfo.raiseMoney / borrowInfo.borrowMoney) * 100}"
								type="currency" pattern="0.00" />%</span> <span class="icon_pro"></span>
					</div>
				</div>
			</c:forEach>
		</div>
		<c:import url="../../include/foot.jsp">
			<c:param name="type" value="deal"></c:param>
		</c:import>
	</div>
</body>
</html>